﻿using System;

class Tribonacci
{
    static void Main(string[] args)
    {
        int treeHeight = int.Parse(Console.ReadLine());
        char dot  = '.';
        char star = '*';

        for (int starsCount = 1, dotscount = treeHeight - 2; dotscount>= 0 ; dotscount--, starsCount += 2)
        { 
            string currentLine = new String(dot, dotscount) + new String(star, starsCount) + new String(dot, dotscount);
            Console.WriteLine(currentLine);    
        }

        string lastLine = new String(dot, treeHeight-2) + "*" + new String(dot, treeHeight-2);
        Console.WriteLine(lastLine);

    }
}
